package com.atguigu.eduorder.client;

import com.atguigu.commonutils.vo.UcenterMemberVO;
import com.atguigu.eduorder.client.impl.UcenterFileDegradeFeignClient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * 用户中心模块
 *
 * @author 76109
 */
@Component
@FeignClient(name = "service-educenter", fallback = UcenterFileDegradeFeignClient.class)
public interface UcenterClient {
    /**
     * 根据用户Id查询用户信息
     *
     * @param memberId
     * @return
     */
    @PostMapping("/edu/center/member/getMemberInfoById/{memberId}")
    UcenterMemberVO getMemberInfoById(@PathVariable("memberId") String memberId);
}
